package com.hsd.mapper;

import com.hsd.model.RUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RUserMapper {
    public int deleteByPrimaryKey(Integer userId);

    public int insert(RUser record);

    public int insertSelective(RUser record);

    public RUser selectByPrimaryKey(Integer userId);

    public int updateByPrimaryKeySelective(RUser record);

    public int updateByPrimaryKey(RUser record);
    
    public List<RUser> findAllUser();

    public List<RUser> findAllUserPage(@Param(value = "s") int s,
                                       @Param(value = "e") int e);
    public RUser findUser(@Param(value = "username") String username, @Param(value = "password") String password);

    public String selectPasswordById(@Param(value = "userId") int userId);

    public void updatePasswordById(@Param(value = "userId") String userId, @Param(value = "newPassword") String newPassword);

    
}